Skip to content

fixed the light theme issue#22

Open
Shayan-Bhowmik wants to merge 1 commit into
revatikadam0607:mainfrom
Shayan-Bhowmik:settings-option
Open

fixed the light theme issue#22
Shayan-Bhowmik wants to merge 1 commit into
revatikadam0607:mainfrom
Shayan-Bhowmik:settings-option

Conversation

@Shayan-Bhowmik

Copy link
Copy Markdown

#19 #NSoC '26
I have fixed the light theme issue please review it and let me know if I need to make any changes

Copilot AI review requested due to automatic review settings May 9, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix the site’s light theme rendering by introducing additional theme-driven CSS variables (e.g., sidebar/button/background gradient secondary color) and wiring CSS to use them.

Changes:

  • Added new theme variables (--sidebar, --btn, --secondary-bg) and set them in setTheme (in js/theme.js).
  • Updated body background gradient to use --secondary-bg instead of a hard-coded dark color.
  • Updated sidebar/button styling in separate CSS files to reference the new CSS variables.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
revati-kadam-portfolio/js/theme.js Extends setTheme to set additional CSS variables for light/dark modes.
revati-kadam-portfolio/css/style.css Adds defaults for new CSS variables and uses --secondary-bg in the page background gradient.
revati-kadam-portfolio/css/layout.css Switches sidebar background to var(--sidebar) (note: stylesheet not currently referenced).
revati-kadam-portfolio/css/components.css Switches .skills-btn background to var(--btn) (note: stylesheet not currently referenced).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread revati-kadam-portfolio/js/theme.js
Comment on lines 12 to 16
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(135deg, var(--bg), #020617);
background: linear-gradient(135deg, var(--bg), var(--secondary-bg));
color: var(--text);
Comment on lines 5 to 10
.sidebar {
width: 250px;
height: 100vh;
background: #1a1a1a;
background: var(--sidebar);
padding: 20px;
}
Comment on lines 7 to 10
.skills-btn {
background: #333;
background: var(--btn);
color: white;
}
@revatikadam0607

Copy link
Copy Markdown
Owner

Thanks for the PR.. I tested it and noticed that the site is stuck in light mode...Even after selecting dark mode, it still shows the light theme. Could you please look into it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants